package org.durandj.ystream.server.network.packetHandlers;

import org.durandj.ystream.server.network.Packet;
import org.durandj.ystream.server.network.PacketHandler;

/**
 * The default packet handler that does more or less
 * nothing with the packet.
 * 
 * @author durandj
 * @version 1.0
 *
 */
public class DefaultPacketHandler extends PacketHandler
{
	/**
	 * Creates the default packet handler.
	 */
	public DefaultPacketHandler()
	{
		super(); // Let the PacketHandler constructor do most of the work.
	}
	
	/* (non-Javadoc)
	 * @see org.durandj.ystream.server.network.PacketHandler#handlePacket(org.durandj.ystream.server.network.Packet)
	 */
	@Override
	protected void handlePacket(Packet packet)
	{
		log.info("No packet handler defined. Usinging default packet handler.\n" +
				 "Opcode: " + packet.getOpcode());
	}
}
